package services.impl;

import beans.SubcontractInfo;
import dao.SubcontractInfoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import services.SubcontractInfoServices;

import java.util.List;

@Service
public class SubcontractInfoServicesImpl implements SubcontractInfoServices {
    @Autowired
    private SubcontractInfoDao subcontractInfoDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        int i = subcontractInfoDao.deleteByPrimaryKey(id);
        return i;
    }

    @Override
    public int insert(SubcontractInfo record) {
        int i =subcontractInfoDao.insert(record);
        return i;
    }

    @Override
    public int insertSelective(SubcontractInfo record) {
        int i = subcontractInfoDao.insertSelective(record);
        return i;
    }

    @Override
    public SubcontractInfo selectByPrimaryKey(Integer id) {
        SubcontractInfo subcontractInfo = subcontractInfoDao.selectByPrimaryKey(id);
        return subcontractInfo;
    }

    @Override
    public int updateByPrimaryKeySelective(SubcontractInfo record) {
        int i = subcontractInfoDao.updateByPrimaryKeySelective(record);
        return i;
    }

    @Override
    public int updateByPrimaryKey(SubcontractInfo record) {
        int i = subcontractInfoDao.updateByPrimaryKey(record);
        return i;
    }

    @Override
    public int count() {
        return subcontractInfoDao.count();
    }

    @Override
    public List<SubcontractInfo> selectList() {
        List<SubcontractInfo> list = subcontractInfoDao.selectList();
        return list;
    }
    @Override
    public List<SubcontractInfo> selectSelective(String select,String inputText) {
        List<SubcontractInfo> list = subcontractInfoDao.selectSelective(select,inputText);
        return list;
    }
}
